package com.heavenbird.book.service.interfaces;

import com.heavenbird.book.bean.CategoryShortInfo;
import com.heavenbird.book.entity.UserCategoryDef;

public interface IUserCategoryDefSV {
	public void initUserCategoryDef(long userId) throws Exception;
	public UserCategoryDef[] getCanModifyCategory(long userId, long parentId, int sts) throws Exception;
	public UserCategoryDef[] getCategory(long userId, long parentId, int sts) throws Exception;
	public void newUserCategoryDef(long userId, String categoryLevel, long parentId, String categoryName) throws Exception;
	public CategoryShortInfo[] getCategoryInfo(long userId, long parentId, int sts) throws Exception;
	public UserCategoryDef getCategoryInfo(long categoryId, int sts) throws Exception;
	public CategoryShortInfo[] getCategoryInfoByType(long userId, int categoryType, int sts) throws Exception;
	public void updateCategoryInfo(long categoryId, String categoryName, long parentId) throws Exception;
	public UserCategoryDef[] getCategory(long parentId, int sts) throws Exception;
	public void delCatgoryInfo(long categoryId) throws Exception;
	public  UserCategoryDef[] getCategory(long userId, long parentId, int categoryType, int sts) throws Exception;
	public UserCategoryDef[] getCategory(long parentId, int categoryType, int sts) throws Exception;
	public void upCategory(long userId, long categoryId, int sts) throws Exception;
	public void downCategory(long userId, long categoryId, int sts) throws Exception;
	public UserCategoryDef[] getCategoryList(long userId, int sts) throws Exception;
}
